﻿using System;

namespace SimpleORMNET
{
    [Serializable]
    public class TypeMismatchException : Exception
    {
        public TypeMismatchException()
        {
        }

        public TypeMismatchException(string message)
            : base(message)
        {
        }

        public TypeMismatchException(string message, Exception inner)
            : base(message, inner)
        {
        }

        protected TypeMismatchException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context)
        { }
    }

    [Serializable]
    public class NoPrimaryKeyException : Exception
    {
        public NoPrimaryKeyException()
        {
        }

        public NoPrimaryKeyException(string message)
            : base(message)
        {
        }

        public NoPrimaryKeyException(string message, Exception inner)
            : base(message, inner)
        {
        }

        protected NoPrimaryKeyException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context)
        { }
    }
}